<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_product_commission".
 *
 * @property int $id
 * @property int $product_id
 * @property float $vip1
 * @property float $vip2
 * @property float $vip3
 * @property float $vip4
 * @property float $new1
 * @property float $new2
 * @property float $new3
 * @property float $new4
 * @property float $r1
 * @property float $r2
 * @property float $re 回收加多少钱
 * @property int $repeat
 */
class SetProductCommission extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_product_commission';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['product_id'], 'integer'],
            [['vip1', 'vip2', 'vip3', 'vip4', 'new1', 'new2', 'new3', 'new4', 'r1', 'r2', 're'], 'number'],


            [['repeat', 'general', 'g1', 'g2', 'g3', 'f1', 'f2'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'product_id' => 'Product ID',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'svip1' => 'Svip 1',
            'svip2' => 'Svip 2',
            'new1' => 'New 1',
            'new2' => 'New 2',
            'new3' => 'New 3',
            'new4' => 'New 4',
            'r1' => 'R 1',
            'r2' => 'R 2',
            're' => 'Re',
        ];
    }
}
